package main

import "fmt"

type Moon struct {
	name string
	age  int
}

func (m Moon) PrintInfo() {
	fmt.Printf("name: %s, age: %d\n", m.name, m.age)
}
func main() {

	var p1 = Moon{
		name: "world",
		age:  18,
	}
	p1.PrintInfo()
}
